<?php
include(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'bootstrap.php');

if (isset($_POST['login']) &&
    $_POST['login'] == $_SESSION['login']) {

    session_destroy();
}

$view = new View();
$view->redirect('index.php');
